package com.ruoyi.factorydata.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 工艺路线对象 craft_route
 *
 * @author ruoyi
 * @date 2025-07-15
 */
@Data
@TableName(resultMap = "com.ruoyi.factorydata.mapper.CraftRouteMapper.CraftRouteResult")
public class CraftRoute extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 关联产品ID
     */
    @Excel(name = "关联产品ID")
    private Long productId;

    /**
     * 路线编码
     */
    @Excel(name = "路线编码")
    private String routeCode;

    /**
     * 路线名称
     */
    @Excel(name = "路线名称")
    private String routeName;

    /**
     * 单序加工标识(1是 0否)
     */
    @Excel(name = "单序加工标识(1是 0否)")
    private String isExclusive;

    /**
     * 状态（0正常 1停用）
     */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /**
     * 工艺附件
     */
    @Excel(name = "工艺附件")
    private String craftAttachments;

    /**
     * 工艺标签
     */
    @Excel(name = "工艺标签")
    private String craftTag;
    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @TableLogic(value = "0", delval = "2")
    private String delFlag;

    /**
     * 版本号
     */
    @Version
    private Long version;

}